<?php

namespace app\admin\model;

use think\Model;
use think\model\concern\SoftDelete;

class Commodity extends Model
{
    public function getTypeAttr($value){
        $arr = [
            0     =>  '常规商品',
            1     =>  'CDK商品',
        ];
        return $arr[$value];
    }
}